Public Member Functions | |
JvnServers (JvnRemoteServer server, JvnObject obj) throws JvnException | |
Public Attributes | |
LinkedList< JvnRemoteServer > | jvnListOfServers = new LinkedList<JvnRemoteServer>() |
JvnObject | jvnObject = null |
JvnObjectState | lockState = null |
Serializable | latestJvnObjectContent = null |
Definition at line 86 of file JvnCoordImpl.java.
jvn.JvnServers.JvnServers | ( | JvnRemoteServer | server, | |
JvnObject | obj | |||
) | throws JvnException |
Constructor based on a server and an object. Parameters are trivial, and only pointers are copied (no "new" is done).
Definition at line 91 of file JvnCoordImpl.java.
References jvn.JvnServers.jvnListOfServers, jvn.JvnServers.jvnObject, and jvn.JvnServers.latestJvnObjectContent.
00092 { 00093 jvnListOfServers.add(server); 00094 jvnObject = obj; 00095 if( obj!=null ) { 00096 try { 00097 latestJvnObjectContent = obj.jvnGetObjectState(); 00098 } catch( JvnException e ) { 00099 latestJvnObjectContent = null; 00100 } 00101 } 00102 }
LinkedList<JvnRemoteServer> jvn.JvnServers.jvnListOfServers = new LinkedList<JvnRemoteServer>() |
We have a Set of servers since multiple servers may be holding a copy of a given object (for example, if they're reading)
Definition at line 108 of file JvnCoordImpl.java.
Referenced by jvn.JvnCoordImpl.jvnLockRead(), jvn.JvnCoordImpl.jvnLockWrite(), jvn.JvnServers.JvnServers(), and jvn.JvnCoordImpl.jvnServerTerminated().
A copy of the object.
Definition at line 113 of file JvnCoordImpl.java.
Referenced by jvn.JvnCoordImpl.jvnLookupObject(), jvn.JvnServers.JvnServers(), and jvn.JvnCoordImpl.jvnServerTerminated().
Lock state, can only be JvnObjectState#STATE_RLOCKT, JvnObjectState#STATE_WLOCKT or JvnObjectState#STATE_NOLOCK
Definition at line 120 of file JvnCoordImpl.java.
Referenced by jvn.JvnCoordImpl.jvnLockRead(), jvn.JvnCoordImpl.jvnLockWrite(), jvn.JvnCoordImpl.jvnRegisterObject(), and jvn.JvnCoordImpl.jvnServerTerminated().
Serializable jvn.JvnServers.latestJvnObjectContent = null |
Latest content of the Serializable content of the object.
Definition at line 125 of file JvnCoordImpl.java.
Referenced by jvn.JvnCoordImpl.jvnLockRead(), jvn.JvnCoordImpl.jvnLockWrite(), jvn.JvnServers.JvnServers(), and jvn.JvnCoordImpl.jvnServerTerminated().